package com.caseProcess.service.impl;

import com.caseProcess.entity.Resources;
import com.caseProcess.mapper.ResourcesDao;
import com.caseProcess.service.ResourcesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ResourcesServiceImpl implements ResourcesService {
   @Resource
    private ResourcesDao resourcesDao;

    @Override
    public int insert(Resources resources) {
        return resourcesDao.insert(resources);
    }

    @Override
    public int update(Resources resources) {
        return resourcesDao.update(resources);
    }

    @Override
    public int updateByOperNoteId(String operNoteId, String newOperNoteId) {
        return resourcesDao.updateByOperNoteId(operNoteId,newOperNoteId);
    }

    @Override
    public int delete(Resources resources) {
        return resourcesDao.delete(resources);
    }

    @Override
    public List<Resources> selectResourcess(Resources resources) {
        return resourcesDao.selectResourcess(resources);
    }
}
